/* Helpers
   ========================================================================== */

// helper for percentage height
$percentage-heights: (
    "25" : 25%, 
    "33": 33%, 
    "50": 50%, 
    "16-9": 56.2500%, 
    "golden-cut": 61.8%,
    "66": 66%, 
    "75": 75%, 
    "100": 100%
);
[class*="col-xs-height-"],
[class*="col-sm-height-"],
[class*="col-md-height-"],
[class*="col-lg-height-"] {
    position: relative;
    &:before {
        content: "";
        display: block;
    }
    > .gx-content-zone-col,
    > .widget-content {
        position: absolute !important;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
    }
}
@each $name, $height in $percentage-heights {
    .col-xs-height-#{$name}:before { padding-top: $height; }
}
@media (min-width: $screen-sm-min) {
    @each $name, $height in $percentage-heights {
        .col-sm-height-#{$name}:before { padding-top: $height; }
    }
}
@media (min-width: $screen-md-min) {
    @each $name, $height in $percentage-heights {
        .col-md-height-#{$name}:before { padding-top: $height; }
    }
}
@media (min-width: $screen-lg-min) {
    @each $name, $height in $percentage-heights {
        .col-lg-height-#{$name}:before { padding-top: $height; }
    }
}

// helper to center contents vertically
.vertical-align-top {
    display: flex;
    align-items: flex-start;
    > .gx-content-zone-col,
    > .widget-content {
        position: relative !important;
    }
}
.vertical-align-center {
    display: flex;
    align-items: center;
    > .gx-content-zone-col,
    > .widget-content {
        position: relative !important;
    }
}
.vertical-align-bottom {
    display: flex;
    align-items: flex-end;
    > .gx-content-zone-col,
    > .widget-content {
        position: relative !important;
    }
}

// helper to center contents horizontally
.horizontal-align-center {
    display: flex;
    justify-content: center;
    > .gx-content-zone-col,
    > .widget-content {
        position: relative !important;
    }
}

// helper for video backgrounds and overlaying content
.video-background {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    > video {
        min-width: 100%;
        min-height: 100%;
        position: absolute;
        left: 50%;
        transform: translate(-50%, -50%);
        top: 50%;
    }
    .content {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
    }
}

// helper for youtube embeds
.video-container {
    position: relative;
    padding-bottom: 56.25%;
    padding-top: 30px;
    height: 0;
    overflow: hidden;
}
.video-container iframe,
.video-container object,
.video-container embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}


/* Content Blocks
   ========================================================================== */

.teaser-group-right-to-slider {
    margin-top: 11px;
    @media (min-width: $screen-md-min) {
        margin-top: 0;
        padding-left: 1px;
    }
    @media (min-width: $screen-md-min) {
        padding-left: 2px;
    }
    .teaser {
        display: block;
        margin-bottom: 11px;
        @media (min-width: $screen-lg-min) {
            margin-bottom: 15px;
        }
    }

    @media (max-width: $screen-sm-max) {
        .col-xs-6 {
            &:first-of-type {
                padding-right: 6px;
            }
            &:last-of-type {
                padding-left: 6px;
            }
        }
    }
}

.teaser-group-three-squares {
    @extend .row;
    margin-bottom: 60px;
    > div {
        padding: 0;
    }

    .widget-content {
        margin: 0 40px;
        @media (min-width: $screen-md-min) {
            margin: 0 80px;
        }
        > div {
            text-align: center;
            font-size: 20px;
            padding-bottom: 15px;
            @media (min-width: $screen-sm-min) {
                padding-bottom: 30px;
            }
            a {
                display: inline-block;
                color: #fff;
                padding-right: 30px;
                position: relative;
                text-transform: uppercase;
                &:before {
                    position: absolute;
                    top: 4px;
                    right: 0;
                    @extend %fa-icon;
                    @extend .fas;
                    content: fa-content($fa-var-arrow-right);
                    &:hover {
                        text-decoration: none;
                        color: #fff;
                    }
                }
            }
        }
    }
}

.teaser-group-2-cols-big-image {
    @extend .row;
    margin-bottom: 60px;
    > div {
        padding: 0;
        background: #f3f3f3;
    }
    .content {
        padding: 30px;
        @media (min-width: $screen-lg-min) {
            padding: 60px;
        }
    }
    .headline {
        font-weight: 700;
        text-transform: uppercase;
        font-size: 30px;
        @media (min-width: $screen-lg-min) {
            font-size: 50px;
        }
    }
    .button {
        margin-top: 45px;
    }
}

.shop-the-look-text {
    .content {
        text-align: center;
        strong {
            display: inline-block;
            color: #fff;
            background-color: #000;
            font-size: 40px;
            font-weight: 700;
            line-height: 1;
            padding: 5px 15px;
            @media (min-width: $screen-md-min) {
                font-size: 60px;
            }
        }
    }
    &:after {
        position: absolute;
        top: 100%;
        left: 50%;
        margin-left: -20px;
        content: "";
        width: 0; 
        height: 0; 
        border-left: 20px solid transparent;
        border-right: 20px solid transparent;
        border-top: 20px solid #eee;
    }
}

.follow-us {
    .video-background .content {
        font-size: 60px;
        line-height: 1;
        text-transform: uppercase;
        font-weight: 700;
        color: #000000;
        text-shadow: 0 0 10px rgba(0, 0, 0, 1);
        @media (min-width: $screen-md-min) {
            font-size: 100px;
        }
        @media (min-width: $screen-lg-min) {
            font-size: 150px;
        }
    }
}

.content-box-shadow {
    // @extend .container;  
    margin-bottom: 60px;
    padding: 60px;
    @include box-shadow(0 0 15px rgba(0, 0, 0, .15));
}

// defined font sizes for the WYSIWYG StyleEdit 4 option
.text-tiny {
    font-size: .7em;
}

// .text-small class is already defined here: themes/Malibu/styles/system/modules/_global.scss

.text-big {
    font-size: 1.4em;
}

.text-huge {
    font-size: 1.8em;
}